﻿using System;
using Newtonsoft.Json;

namespace Common.Model
{
    public class HotList
    {
        /// <summary>
        /// 股票代码
        /// </summary>
        [JsonProperty(PropertyName = "seccode")]
        public string Code { set; get; }




        /// <summary>
        /// 股票名称
        /// </summary>
        public string SecName { get; set; }

        /// <summary>
        /// 日期
        /// </summary>
        public string Date { get; set; }

        /// <summary>
        /// 营业部全程
        /// </summary>
        public string DepartmentName { get; set; }

        /// <summary>
        /// 买入金额
        /// </summary>
        public double BuyAmount { get; set; }

        /// <summary>
        /// 卖出金额
        /// </summary>
        public double SellAmount { get; set; }

        /// <summary>
        /// 异动详情
        /// </summary>
        public string TypeDetails { get; set; }

        /// <summary>
        /// 异动类型
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 买卖方向
        /// </summary>
        public string Direction { get; set; }

        public DateTime CreateTime { get; set; }

        public string SecCode
        {
            get => Code.Substring(0, 1) == "6" ? Code + ".SH" : Code + ".SZ";
            set => Code = value;
        }
    }
}